home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / kh_gdi.zip / APXPRINT.H < prev    next >
C/C++ Source or Header  |  1996-05-27  |  1KB  |  49 lines

  1. #if !defined(__apxprint_h)              // Sentry use file only if it's not already included.
  2. #define __apxprint_h
  3.  
  4. /*  Project slang
  5.     
  6.     Copyright ⌐ 1995. All Rights Reserved.
  7.  
  8.     SUBSYSTEM:    slang.exe Application
  9.     FILE:         APXPrint.H
  10.     AUTHOR:       Stepan S.Vartanov
  11.  
  12.  
  13.     OVERVIEW
  14.     ========
  15.     Class definition for APXPrintOut (TPrintOut).      
  16. */
  17.  
  18.  
  19. #include <owl\owlpch.h>
  20. #pragma hdrstop
  21.  
  22.  
  23. class APXPrintOut : public TPrintout {
  24. public:
  25.     APXPrintOut (TPrinter *printer, const char far *title, TWindow* window, bool scale = true) : TPrintout(title)
  26.       { Printer = printer; Window = window; Scale = scale; MapMode = MM_ANISOTROPIC; }
  27.  
  28.     void GetDialogInfo (int& minPage, int& maxPage, int& selFromPage, int& selToPage);
  29.     void BeginPrinting ();
  30.     void BeginPage (TRect &clientR);
  31.     void PrintPage (int page, TRect& rect, unsigned flags);
  32.     void EndPage ();
  33.     void SetBanding (bool b)        { Banding = b; }
  34.     bool HasPage (int pageNumber);
  35.  
  36. protected:
  37.     TWindow     *Window;
  38.     bool        Scale;
  39.     TPrinter    *Printer;
  40.     int         MapMode;
  41.  
  42.     int         PrevMode;
  43.     TSize       OldVExt, OldWExt;
  44.     TRect       OrgR;
  45. };
  46.  
  47.  
  48. #endif          // __apxprint_h sentry.
  49.